// 利用对象封装自己的数学对象 里面有 PI 最大值和最小值

/*
let myMath = {
    PI: Math.PI,
    max: function (...nums) {
        return Math.max(...nums)
    }, min: function (...nums) {
        return Math.min(...nums)
    }
}


console.log(myMath.PI)

console.log(myMath.max(1,2,3,4,5,9,6,93,5,2))*/

//0<x<1
//1<=x<=100
//x   y   Math.floor(Math.random * (y-x+1)+x
console.log(Math.random())
let num = Math.random();
// num = Math.floor(num * 100) + 1
num = Math.floor(Math.random() * 101) + 100;

let arr = [1,2,3,4,5];
arr.sort()